:root {
  --select-scroller-background: var(--color-surface-container-high);
  --select-scroller-padding: 6px 0;
  --select-scroller-max-height: 278px;
  --select-scroller-border-radius: 2px;
  --select-chip-margin: 5px 5px 0;
  --select-arrow-size: 20px;
  --select-standard-menu-margin: calc(var(--field-decorator-placeholder-size) * 0.75 + 12px) 0 0 0;
  --select-label-font-size: 16px;
}

.var-select {
  text-align: left;
  outline: none;

  &__menu[var-select-cover] {
    width: 100%;
    background: transparent;
    display: block;
  }

  &__chip[var-select-cover] {
    margin: var(--select-chip-margin);
  }

  &__scroller {
    max-height: var(--select-scroller-max-height);
    background: var(--select-scroller-background);
    padding: var(--select-scroller-padding);
    overflow-y: auto;
    transition: background-color 0.25s;
    border-radius: var(--select-scroller-border-radius);
  }

  &__wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  &__select {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 24px;
    outline: none;
    border: none;
    font-size: inherit;
    color: var(--field-decorator-text-color);
    word-break: break-all;
    overflow: hidden;
    transition: color 0.25s;
  }

  &__label {
    display: flex;
    align-items: center;
    font-size: var(--select-label-font-size);
  }

  &__placeholder {
    max-width: 100%;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    font-size: var(--field-decorator-placeholder-size);
    line-height: 1.5em;
    color: var(--field-decorator-blur-color);
    pointer-events: none;
    cursor: inherit;
  }

  &__arrow[var-select-cover] {
    flex-shrink: 0;
    font-size: var(--select-arrow-size);
  }

  &--standard-menu-margin {
    margin: var(--select-standard-menu-margin) !important;
  }

  &--disabled {
    color: var(--field-decorator-disabled-color);
    cursor: not-allowed;
  }

  &--error {
    color: var(--field-decorator-error-color);
  }

  &--arrow-rotate {
    transform: rotate(180deg);
  }
}
